#ifndef __MOUNT_H
#define __MOUNT_H

#include <types.h>
#include <driver.h>

/* mount point struct */
typedef struct mount_point_p
{
	char path[1024];

	drv_t *driver;
	
	/* here will be the fs struct reference */
	
	
	struct mount_point_p *next;
} mount_point_t;


/* the filesystem it is organized in a list of
 * mountpoints; when a task request a vfs function with a file, the os
 * find the correct mountpoint where the file is placed, and call the
 * correct function in the correct fs used by the mountpoint */
mount_point_t *mountlist;



mount_point_t *mountpoint_get_from_path(char *path);
mount_point_t *mountpoint_iget(int);

#endif
